//
//  PurchaseNowViewController.h
//  ChunLaiZhuangClient
//
//  Created by xielihui on 16/3/20.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#import "SubBaseViewController.h"
@class ProdcutDetaiModel;

@class PurchaseNowViewController;
@protocol PurchaseCommodityDelegate <NSObject>

- (void)closePurchaseViewController:(PurchaseNowViewController *)purchaseVC;
- (void)addOptionalProductToShopBag:(PurchaseNowViewController *)purchaseVC success:(BOOL)success;


@end

@interface PurchaseNowViewController : SubBaseViewController

@property(nonatomic, weak) id<PurchaseCommodityDelegate> delegate;
- (id)initWithProductModel:(ProdcutDetaiModel *)model;
- (id)initWithProductModel:(ProdcutDetaiModel *)model isOptionalProductToCart:(BOOL)optional;
@end
